package jpa.entitys.promis.construction;

import java.io.Serializable;

import javax.persistence.*;

import java.math.BigDecimal;
import java.util.Date;

/**
 * The persistent class for the COST_BOQ_ACTIVITY database table.
 * 
 */
@Entity
@Table(name="COST_BOQ_ACTIVITY")
@NamedQueries({
    @NamedQuery(name = "CostBoqActivity.findAll", query = "SELECT c FROM CostBudget c "),
    @NamedQuery(name = "CostBoqActivity.findById", query = "SELECT c FROM CostBudget c WHERE c.id = :Id ")
})
public class CostBoqActivity extends jpa.entitys.common.CommonEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	
	@EmbeddedId
	private CostBoqActivityPK id;

	@Override public String toString() { return org.apache.commons.lang.builder.ToStringBuilder.reflectionToString(this);}
	
	@Column(name="ACTIVITY_CHILD_CODE", length=30)
	private String activityChildCode;

	@Column(name="ACTIVITY_CODE", length=30)
	private String activityCode;

	@Column(name="ACTIVITY_GROUP_CODE", length=30)
	private String activityGroupCode;

	@Column(name="ACTIVITY_ID", length=30)
	private String activityId;

	@Column(name="ACTIVITY_LEVEL", precision=2)
	private BigDecimal activityLevel;

	@Column(name="ACTIVITY_STATE", length=2)
	private String activityState;

	@Column(name="BUILDING_PHASE", length=30)
	private String buildingPhase;

	@Column(name="CHILD_CODE", length=30)
	private String childCode;

	@Column(name="CONTRACTOR_FLAG", precision=5)
	private BigDecimal contractorFlag;

	@Column(name="CONTRACTOR_LABOUR", precision=18, scale=2)
	private BigDecimal contractorLabour;

	@Column(name="CONTRACTOR_MATERIAL", precision=18, scale=2)
	private BigDecimal contractorMaterial;

	@Column(name="CREATED_BY")
	private String createdBy;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="CREATED_ON")
	private Date createdOn;

	@Column(length=300)
	private String description;

	@Column(name="DEVELOPER_FLAG", precision=5)
	private BigDecimal developerFlag;

	@Column(name="DEVELOPER_LABOUR", precision=18, scale=2)
	private BigDecimal developerLabour;

	@Column(name="DEVELOPER_MATERIAL", precision=18, scale=2)
	private BigDecimal developerMaterial;

	@Column(name="DISPLAY_SUB_GROUP", length=1)
	private String displaySubGroup;

	@Column(length=1)
	private String flag;

	@Column(name="GROUP_CODE", length=30)
	private String groupCode;

	@Column(name="LAST_UPD_BY")
	private String lastUpdBy;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="LAST_UPD_ON")
	private Date lastUpdOn;

	@Column(name="PARENT_CODE", length=30)
	private String parentCode;

	@Column(name="PROVIDED_BY")
	private String providedBy;

	@Column(name="REF_CHILD", length=30)
	private String refChild;

	@Column(name="REF_PARENT", length=30)
	private String refParent;

	@Column(length=1)
	private String status;

	@Column(name="T_SEQ_NO", precision=15, scale=5)
	private BigDecimal tSeqNo;

	@Column(name="TOTAL_CONTRACTOR", precision=18, scale=2)
	private BigDecimal totalContractor;

	@Column(name="TOTAL_COST", precision=22)
	private BigDecimal totalCost;

	@Column(name="TOTAL_DEVELOPER", precision=18, scale=2)
	private BigDecimal totalDeveloper;

	@Column(name="TOTAL_LABOUR", precision=22)
	private BigDecimal totalLabour;

	@Column(name="TOTAL_MATERIAL", precision=22)
	private BigDecimal totalMaterial;

	@Column(name="TOTAL_QTY", precision=18, scale=2)
	private BigDecimal totalQty;

	@Column(name="UNIT_ID", precision=22)
	private BigDecimal unitId;

	@Column(name="UNIT_NUMBER", length=30)
	private String unitNumber;

	@Column(name="VOUCHER_NO", precision=6)
	private BigDecimal voucherNo;

	@Column(name="VOUCHER_SERIES", length=4)
	private String voucherSeries;

	@Column(name="VOUCHER_TYPE", length=3)
	private String voucherType;

	@Column(name="ZONE_CODE")
	private String zoneCode;
	
	public CostBoqActivity() {
    }
	
	@Column(name="IS_INTERFACE")
	private String isInterface;

	public String getIsInterface() {
		return isInterface;
	}

	public void setIsInterface(String isInterface) {
		this.isInterface = isInterface;
	}

	public CostBoqActivityPK getId() {
		return this.id;
	}

	public void setId(CostBoqActivityPK id) {
		this.id = id;
	}
	
	public String getActivityChildCode() {
		return this.activityChildCode;
	}

	public void setActivityChildCode(String activityChildCode) {
		this.activityChildCode = activityChildCode;
	}

	public String getActivityCode() {
		return this.activityCode;
	}

	public void setActivityCode(String activityCode) {
		this.activityCode = activityCode;
	}

	public String getActivityGroupCode() {
		return this.activityGroupCode;
	}

	public void setActivityGroupCode(String activityGroupCode) {
		this.activityGroupCode = activityGroupCode;
	}

	public String getActivityId() {
		return this.activityId;
	}

	public void setActivityId(String activityId) {
		this.activityId = activityId;
	}

	public BigDecimal getActivityLevel() {
		return this.activityLevel;
	}

	public void setActivityLevel(BigDecimal activityLevel) {
		this.activityLevel = activityLevel;
	}

	public String getActivityState() {
		return this.activityState;
	}

	public void setActivityState(String activityState) {
		this.activityState = activityState;
	}

	public String getBuildingPhase() {
		return this.buildingPhase;
	}

	public void setBuildingPhase(String buildingPhase) {
		this.buildingPhase = buildingPhase;
	}

	public String getChildCode() {
		return this.childCode;
	}

	public void setChildCode(String childCode) {
		this.childCode = childCode;
	}

	public BigDecimal getContractorFlag() {
		return this.contractorFlag;
	}

	public void setContractorFlag(BigDecimal contractorFlag) {
		this.contractorFlag = contractorFlag;
	}

	public BigDecimal getContractorLabour() {
		return this.contractorLabour;
	}

	public void setContractorLabour(BigDecimal contractorLabour) {
		this.contractorLabour = contractorLabour;
	}

	public BigDecimal getContractorMaterial() {
		return this.contractorMaterial;
	}

	public void setContractorMaterial(BigDecimal contractorMaterial) {
		this.contractorMaterial = contractorMaterial;
	}

	public String getCreatedBy() {
		return this.createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public Date getCreatedOn() {
		return this.createdOn;
	}

	public void setCreatedOn(Date createdOn) {
		this.createdOn = createdOn;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public BigDecimal getDeveloperFlag() {
		return this.developerFlag;
	}

	public void setDeveloperFlag(BigDecimal developerFlag) {
		this.developerFlag = developerFlag;
	}

	public BigDecimal getDeveloperLabour() {
		return this.developerLabour;
	}

	public void setDeveloperLabour(BigDecimal developerLabour) {
		this.developerLabour = developerLabour;
	}

	public BigDecimal getDeveloperMaterial() {
		return this.developerMaterial;
	}

	public void setDeveloperMaterial(BigDecimal developerMaterial) {
		this.developerMaterial = developerMaterial;
	}

	public String getDisplaySubGroup() {
		return this.displaySubGroup;
	}

	public void setDisplaySubGroup(String displaySubGroup) {
		this.displaySubGroup = displaySubGroup;
	}

	public String getFlag() {
		return this.flag;
	}

	public void setFlag(String flag) {
		this.flag = flag;
	}

	public String getGroupCode() {
		return this.groupCode;
	}

	public void setGroupCode(String groupCode) {
		this.groupCode = groupCode;
	}

	public String getLastUpdBy() {
		return this.lastUpdBy;
	}

	public void setLastUpdBy(String lastUpdBy) {
		this.lastUpdBy = lastUpdBy;
	}

	public Date getLastUpdOn() {
		return this.lastUpdOn;
	}

	public void setLastUpdOn(Date lastUpdOn) {
		this.lastUpdOn = lastUpdOn;
	}

	public String getParentCode() {
		return this.parentCode;
	}

	public void setParentCode(String parentCode) {
		this.parentCode = parentCode;
	}

	public String getProvidedBy() {
		return this.providedBy;
	}

	public void setProvidedBy(String providedBy) {
		this.providedBy = providedBy;
	}

	public String getRefChild() {
		return this.refChild;
	}

	public void setRefChild(String refChild) {
		this.refChild = refChild;
	}

	public String getRefParent() {
		return this.refParent;
	}

	public void setRefParent(String refParent) {
		this.refParent = refParent;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public BigDecimal getTSeqNo() {
		return this.tSeqNo;
	}

	public void setTSeqNo(BigDecimal tSeqNo) {
		this.tSeqNo = tSeqNo;
	}

	public BigDecimal getTotalContractor() {
		return this.totalContractor;
	}

	public void setTotalContractor(BigDecimal totalContractor) {
		this.totalContractor = totalContractor;
	}

	public BigDecimal getTotalCost() {
		return this.totalCost;
	}

	public void setTotalCost(BigDecimal totalCost) {
		this.totalCost = totalCost;
	}

	public BigDecimal getTotalDeveloper() {
		return this.totalDeveloper;
	}

	public void setTotalDeveloper(BigDecimal totalDeveloper) {
		this.totalDeveloper = totalDeveloper;
	}

	public BigDecimal getTotalLabour() {
		return this.totalLabour;
	}

	public void setTotalLabour(BigDecimal totalLabour) {
		this.totalLabour = totalLabour;
	}

	public BigDecimal getTotalMaterial() {
		return this.totalMaterial;
	}

	public void setTotalMaterial(BigDecimal totalMaterial) {
		this.totalMaterial = totalMaterial;
	}

	public BigDecimal getTotalQty() {
		return this.totalQty;
	}

	public void setTotalQty(BigDecimal totalQty) {
		this.totalQty = totalQty;
	}

	public BigDecimal getUnitId() {
		return this.unitId;
	}

	public void setUnitId(BigDecimal unitId) {
		this.unitId = unitId;
	}

	public String getUnitNumber() {
		return this.unitNumber;
	}

	public void setUnitNumber(String unitNumber) {
		this.unitNumber = unitNumber;
	}

	public BigDecimal getVoucherNo() {
		return this.voucherNo;
	}

	public void setVoucherNo(BigDecimal voucherNo) {
		this.voucherNo = voucherNo;
	}

	public String getVoucherSeries() {
		return this.voucherSeries;
	}

	public void setVoucherSeries(String voucherSeries) {
		this.voucherSeries = voucherSeries;
	}

	public String getVoucherType() {
		return this.voucherType;
	}

	public void setVoucherType(String voucherType) {
		this.voucherType = voucherType;
	}

	public String getZoneCode() {
		return this.zoneCode;
	}

	public void setZoneCode(String zoneCode) {
		this.zoneCode = zoneCode;
	}

}